/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.elec.template.entity;

import cn.net.ecode.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 模板管理Entity
 *
 * @author AlanShelby
 * @version 2019-09-03
 */
public class ElecTemplate extends DataEntity<ElecTemplate> {

    private static final long serialVersionUID = 1L;
    private String templateName;        // 模版名称
    private String templateKey;        // 模版key
    private String templateValue;        // 模版value
    private String templateUrl;        // 模版上传路径

    public ElecTemplate() {
        super();
    }

    public ElecTemplate(String id) {
        super();
        this.id = id;
    }

    @Length(min = 0, max = 255, message = "模版名称长度不能超过 255 个字符")
    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    @Length(min = 0, max = 64, message = "模版key长度不能超过 64 个字符")
    public String getTemplateKey() {
        return templateKey;
    }

    public void setTemplateKey(String templateKey) {
        this.templateKey = templateKey;
    }

    @Length(min = 0, max = 255, message = "模版上传路径长度不能超过 255 个字符")
    public String getTemplateUrl() {
        return templateUrl;
    }

    public void setTemplateUrl(String templateUrl) {
        this.templateUrl = templateUrl;
    }

    @Length(min = 0, max = 255, message = "模版value长度不能超过 255 个字符")
    public String getTemplateValue() {
        return templateValue;
    }

    public void setTemplateValue(String templateValue) {
        this.templateValue = templateValue;
    }
}